import request from '@/utils/request'

// 查询设备通知消息列表
export function listDeviceNoticeMessage(query) {
  return request({
    url: '/system/deviceNoticeMessage/list',
    method: 'get',
    params: query
  })
}

// 查询设备通知消息详细
export function getDeviceNoticeMessage(id) {
  return request({
    url: '/system/deviceNoticeMessage/' + id,
    method: 'get'
  })
}

// 新增设备通知消息
export function addDeviceNoticeMessage(data) {
  return request({
    url: '/system/deviceNoticeMessage',
    method: 'post',
    data: data
  })
}

// 修改设备通知消息
export function updateDeviceNoticeMessage(data) {
  return request({
    url: '/system/deviceNoticeMessage',
    method: 'put',
    data: data
  })
}

// 删除设备通知消息
export function delDeviceNoticeMessage(id) {
  return request({
    url: '/system/deviceNoticeMessage/' + id,
    method: 'delete'
  })
}
